﻿using AnesSystem.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls
{
    /// <summary>
    /// RightContentCtrl.xaml 的交互逻辑
    /// </summary>
    public partial class RightContentCtrl : UserControl
    {

        #region Variables

        RightContentCtrlViewModel vm;

        #endregion

        #region Constructor

        public RightContentCtrl()
        {
            InitializeComponent();
            //new
            vm = new RightContentCtrlViewModel();
            //old
            //vm = RightContentCtrlViewModel.Instance;
            this.DataContext = vm;
            Loaded += RightContentCtrl_Loaded;
        }

        #endregion

        #region Properties

        public RightContentCtrlViewModel ViewModel
        {
            get
            {
                return vm;
            }
        }

        #endregion

        #region 依赖属性

        #endregion

        #region Event

        #endregion

        #region Private Methods

        //private void SetContent()
        //{
        //    if(_content is CustomCommonTableCtrl)
        //    {
        //        _tableContent.Content = null;
        //        _tableContent.Content = _content;
        //    }
        //    else
        //    {
        //        _notTableContent.Children.Clear();
        //        _notTableContent.Children.Add(_content);
        //    }
        //}

        #endregion

        #region Public/Protected Methods

        #endregion

        #region EventHandlers

        private void RightContentCtrl_Loaded(object sender, RoutedEventArgs e)
        {
            
        }

        #endregion
    }
}
